package org.fuxia.im.entities;

import java.util.List;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Transient;

import com.alibaba.fastjson.annotation.JSONField;

@Entity(name = "IMUser")
public class User
{
	@Id
	private String			userCode;
	private String			password;
	private String			nickName;
	private String			birthDay;
	private String			address;
	private String			zipcode;
	private String			idCard;
	private String			createDate;
	private Boolean			isDiable;
	private String			personNote;
	private Short			userState;
	private String			imagePath;
	private Integer			age;
	private String			sex;

	@Transient
	@JSONField(serialize = false)
	private List<User>		friends;

	@Transient
	@JSONField(serialize = false)
	private List<UserGroup>	userGroups;

	public String getUserCode()
	{
		return userCode;
	}

	public void setUserCode(String userCode)
	{
		this.userCode = userCode;
	}

	public String getPassword()
	{
		return password;
	}

	public void setPassword(String password)
	{
		this.password = password;
	}

	public String getNickName()
	{
		return nickName;
	}

	public void setNickName(String nickName)
	{
		this.nickName = nickName;
	}

	public String getBirthDay()
	{
		return birthDay;
	}

	public void setBirthDay(String birthDay)
	{
		this.birthDay = birthDay;
	}

	public String getAddress()
	{
		return address;
	}

	public void setAddress(String address)
	{
		this.address = address;
	}

	public String getZipcode()
	{
		return zipcode;
	}

	public void setZipcode(String zipcode)
	{
		this.zipcode = zipcode;
	}

	public String getIdCard()
	{
		return idCard;
	}

	public void setIdCard(String idCard)
	{
		this.idCard = idCard;
	}

	public String getCreateDate()
	{
		return createDate;
	}

	public void setCreateDate(String createDate)
	{
		this.createDate = createDate;
	}

	public Boolean getIsDiable()
	{
		return isDiable;
	}

	public void setIsDiable(Boolean isDiable)
	{
		this.isDiable = isDiable;
	}

	public String getPersonNote()
	{
		return personNote;
	}

	public void setPersonNote(String personNote)
	{
		this.personNote = personNote;
	}

	public Short getUserState()
	{
		return userState;
	}

	public void setUserState(Short userState)
	{
		this.userState = userState;
	}

	public List<User> getFriends()
	{
		return friends;
	}

	public void setFriends(List<User> friends)
	{
		this.friends = friends;
	}

	public List<UserGroup> getUserGroups()
	{
		return userGroups;
	}

	public void setUserGroups(List<UserGroup> userGroups)
	{
		this.userGroups = userGroups;
	}

	public String getImagePath()
	{
		return imagePath;
	}

	public void setImagePath(String imagePath)
	{
		this.imagePath = imagePath;
	}

	public Integer getAge()
	{
		return age;
	}

	public void setAge(Integer age)
	{
		this.age = age;
	}

	public String getSex()
	{
		return sex;
	}

	public void setSex(String sex)
	{
		this.sex = sex;
	}

}
